package com.yfh.data.base.exception;

import lombok.Data;

/**
 * 自定义的业务异常
 * description:
 * author: Ken
 * 公众号：Java架构栈
 */
@Data
public class ServiceException extends RuntimeException {

    private Integer code;
    private String msg;

    public ServiceException(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }
}
